package com.lt.springbootcrm.controller;

import com.lt.springbootcrm.config.lyx;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {


    @Resource
    private lyx lyx;

    @RequestMapping("/hello")
    public String hello(){
        return "Hello World";
    }



    @Value("${spring.datasource.driver-class-name}")
    private String name;

    @RequestMapping("/hello2")
    public String hello2(){
        String msg = "Hello World"+name+lyx.getName();
        return msg;
    }
}
